package com.icoolkj.ms.system.service.impl;

import com.icoolkj.ms.common.database.dto.PageDTO;
import com.icoolkj.ms.common.database.utils.PageUtil;
import com.icoolkj.ms.common.database.vo.PageVO;
import com.icoolkj.ms.system.mapper.SysDictTypeMapper;
import com.icoolkj.ms.system.model.SysDictType;
import com.icoolkj.ms.system.service.ISysDictTypeService;
import com.icoolkj.ms.system.vo.SysDictTypeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 字典 业务层处理
 * 
 * @author icoolkj
 */
@Service
public class SysDictTypeServiceImpl implements ISysDictTypeService
{
    @Autowired
    private SysDictTypeMapper dictTypeMapper;


    /**
     * 根据条件分页查询字典类型
     * 
     * @param dictType 字典类型信息
     * @return 字典类型集合信息
     */
    @Override
    public List<SysDictType> selectDictTypeList(SysDictType dictType)
    {
        return dictTypeMapper.selectDictTypeList(dictType);
    }

    @Override
    public PageVO<SysDictTypeVO> selectPageDictTypeList(PageDTO pageDTO, SysDictType dictType) {
        List<SysDictTypeVO> list = dictTypeMapper.selectPageDictTypeList(dictType);
        return PageUtil.doPage(pageDTO, () -> dictTypeMapper.selectPageDictTypeList(dictType));
    }


}
